package com.hopu.oa.dao.management;

import com.hopu.oa.entity.management.AoaAttendsList;
import com.hopu.oa.entity.user.AoaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Mapper
@Repository
public interface MonthManageDao {

    /**
     * 周月报表
     */
    List<AoaUser> selectListsByFatherId(int uid, String starttime, String endtime, @Param("seachName") String seachName, int index, int size);

    @Select("select * from aoa_attends_list where attends_user_id=#{uid} and attends_time between #{starttime} and #{endtime} ")
    List<AoaAttendsList> selectWeekByuid(int uid, String starttime, String endtime);

    List<Map> selectMonthByuid(int uid, String month);


}
